<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<div style="text-align:left;">
    <a href="${pageContext.request.contextPath}/client/${clientId}/product/list.do"><h5>back to list of products<h5></a>
</div>
<div id="content">
    <div class="span10">
        <form:form modelAttribute="product" method="POST" cssClass="form-horizontal">
            <form:errors path="name_product"/>
            <form:errors path="start_date"/>
            <div class="control-group"><label class="control-label">Product name:</label><form:input path="name_product"/></div>

            <form:select path="country">
                <div class="control-group"><form:options items="${countries}" itemLabel="CName" itemValue="ID"/> </div>
            </form:select>
            <form:select path="type_product" >
                <div class="control-group"><form:options items="${types}" itemLabel="name" itemValue="id"/> </div>
            </form:select>

            <form:select path="status" >
                <div class="control-group">
                    <form:option value="0">Inactive</form:option>
                    <form:option value="1">Active</form:option>
                </div>
            </form:select>

            <div class="control-group"><label class="control-label">Date:</label><form:input path="start_date"/></div>

            <div class="control-group"><input type="reset" value="Reset"/><input type="submit" value="Save"/></div>

        </form:form>
    </div>
</div>
</body>
</html>